/********************************************
*
*
********************************************/

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

#include "d_signal.h"


const char * m_acSignalName[][2] = {
    {"Unknow",  "Unknow"},
    {"SIGHUP",  "Hangup (POSIX)"},
    {"SIGINT",  "Interrupt (ANSI)"},
    {"SIGQUIT", "Quit (POSIX)."},
    {"SIGILL",  "Illegal instruction (ANSI)"},
    {"SIGTRAP", "Trace trap (POSIX)"},
    {"SIGIOT",  "IOT trap (4.2 BSD)"},
    {"SIGBUS",  "Bus error (4.2 BSD)"},
    {"SIGFPE",  "Floating-point exception (ANSI)"},
    {"SIGKILL", "Kill, unblockable (POSIX)"},
    {"SIGUSR1", "User-defined SIGnal 1 (POSIX)"},
    {"SIGSEGV", "Segmentation violation (ANSI)"},
    {"SIGUSR2", "User-defined SIGnal 2 (POSIX)"},
    {"SIGPIPE", "Broken pipe (POSIX)"},
    {"SIGALRM", "Alarm clock (POSIX)"},
    {"SIGTERM", "Termination (ANSI)"},
    {"SIGEMT",  "EMT trap (4.2 BSD)"},
    {"SIGCHLD", "Child status has changed (POSIX)"},
    {"SIGCONT", "Continue (POSIX)"},
    {"SIGSTOP", "Stop, unblockable (POSIX)"},
    {"SIGTSTP", "Keyboard stop (POSIX)"},
    {"SIGTTIN", "Background read from tty (POSIX)"},
    {"SIGTTOU", "Background write to tty (POSIX)"},
    {"SIGURG",  "Urgent condition on socket (4.2 BSD)"},
    {"SIGXCPU", "CPU limit exceeded (4.2 BSD)"},
    {"SIGXFSZ", "File size limit exceeded (4.2 BSD)"},
    {"SIGVTALRM", "Virtual alarm clock (4.2 BSD)"},
    {"SIGPROF", "Profiling alarm clock (4.2 BSD)"},
    {"SIGWINCH","Window size change (4.3 BSD, Sun)"},
    {"SIGIO",   "I/O now possible (4.2 BSD)"},
    {"SIGINFO", "Information request (4.4 BSD)."},
    {"SIGSYS",  "Bad argument to system call (4.2 BSD)"},
    {"Unknow",  "Unknow"}
};

#if 0

#define TEST_SignalName(x)\
        printf("%s : %d  "#x"\r\n",m_acSignalName[x][0],x)


TEST_SignalName(SIGHUP);
TEST_SignalName(SIGINT);
TEST_SignalName(SIGQUIT);
TEST_SignalName(SIGILL);
TEST_SignalName(SIGTRAP);
TEST_SignalName(SIGIOT);
TEST_SignalName(SIGFPE);
TEST_SignalName(SIGKILL);
TEST_SignalName(SIGBUS);
TEST_SignalName(SIGSEGV);
TEST_SignalName(SIGSYS);
TEST_SignalName(SIGPIPE);
TEST_SignalName(SIGALRM);
TEST_SignalName(SIGTERM);
TEST_SignalName(SIGURG);
TEST_SignalName(SIGSTOP);
TEST_SignalName(SIGTSTP);
TEST_SignalName(SIGCONT);
TEST_SignalName(SIGCHLD);
TEST_SignalName(SIGCLD);
TEST_SignalName(SIGTTIN);
TEST_SignalName(SIGTTOU);
TEST_SignalName(SIGIO);
TEST_SignalName(SIGPOLL);
TEST_SignalName(SIGXCPU);
TEST_SignalName(SIGXFSZ);
TEST_SignalName(SIGVTALRM);
TEST_SignalName(SIGPROF);
TEST_SignalName(SIGWINCH);
TEST_SignalName(SIGUSR1);
TEST_SignalName(SIGUSR2);


#endif

UINT32 DMS_SignalInit(char * keys)
{
    return DMS_OK;
}

UINT32 DMS_SignalFini()
{
    return DMS_OK;
}














#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

